<template>
	<view class="">
		<view class="conyerList">
			<textarea v-model="content.text" class="textarea" maxlength="-1" placeholder="请输入内容" />
		</view>
		<view class="">
			<sunui-upimg :url="upPicUrl" ref="upload2" title="上传照片1" @upload="handleLoaded2" @change="handleChange2" :number="3">
			    <template v-slot:icon>
			        <text class="s-add-list-btn-icon">+</text>
			    </template>
			</sunui-upimg>
		</view>
		<view class="conterListArr" @click="sendMsg">
			发布
		</view>
	</view>
</template>

<script>
	 
	import sunuiUpimg from "../../components/sunui-upimg/sunui-upimg.vue"
	import {
		Request
	} from '@/utils/request.js';
	export default{
		data(){
			return{
				upPicUrl:[],
				content:{"text":"fdgfdgxcasdfdss发的北国风光的地方","value":["20240911/0f70471e505b43e325bd4bd447660e1f_thumb.png"]},
			}
		},
		components:{
			sunuiUpimg
		},
		methods:{
			sendMsg(){
				Request('im/circle/sendMsg',{
					content:JSON.stringify(this.content),
				},'post').then((res)=>{
					
				})
			}
			// /im/circle/sendMsg
		}
	}
</script>

<style>
	.conyerList{
		width: 702rpx;
		height: 480rpx;
		margin: 0 auto;
		margin-top: 24rpx;
		background: #F7F8FA;
		box-sizing: border-box;
		padding: 20rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}
	.conyerList .textarea{
		width: 100%;
		height: 100%;
	}
	.conterListArr{
		width: 702rpx;
		height: 88rpx;
		margin: 0 auto;
		background: #256FF3;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #FFFFFF;
		line-height: 88rpx;
		position: fixed;
		left: 50%;
		transform: translate(-50%);
		bottom: 100rpx;
		text-align: center;
		font-style: normal;
		text-transform: none;
	}
</style>